setCropAspectRatioLocked

abstract fun setCropAspectRatioLocked(block: DesignBlock, locked: Boolean)

Set whether the crop aspect ratio should be locked for the given block. When enabled, the block will have a FixedAspectRatioTag and crop handles will maintain aspect ratio. When disabled, the FixedAspectRatioTag will be removed and free resizing is allowed. Required scope: "layer/crop"

Parameters

block

the block to update.

locked

whether aspect ratio should be locked.